package dgut.haitaobao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import dgut.haitaobao.entry.Category;
import dgut.haitaobao.entry.CategoryVo;
import dgut.haitaobao.util.response.HttpResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    //1.连接查询
    public List<CategoryVo> selectAllCategories();

    //获得一级分类商品下的销售量最高的6个商品
    public List<CategoryVo> getMaxSoldNumProducts();
}
